package com.wskh.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wskh.edu.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wskh.edu.entity.course.CourseListVo;
import com.wskh.edu.entity.course.CourseSearchObj;
import com.wskh.edu.entity.frontvo.CourseFrontVo;
import com.wskh.edu.entity.vo.CourseInfoVo;
import com.wskh.edu.entity.vo.CoursePublishVo;
import com.wskh.edu.entity.vo.front.CourseWebVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wskh
 * @since 2021-10-14
 */
public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfoVoByCourseId(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    boolean publishCourse(CoursePublishVo coursePublish);

    boolean deleteCourseById(String id);
    boolean updateCourse(CoursePublishVo coursePublish);

    List<Course> selectByTeacherId(String id);

    Map<String, Object> getFrontCourseList(Page<Course> pageParam, CourseFrontVo courseFrontVo);

    CourseWebVo selectInfoWebById(String courseId);
}
